package com.yzy.fly.bean;

import com.yzy.fly.api.function.manage.controller.FlyApiController;
import com.yzy.fly.environment.FlyEnvironmentController;
import com.yzy.fly.function.logging.Log;
import com.yzy.fly.function.logging.LogFactory;
import com.yzy.fly.kernel.model.ability.role.RoleRedisConfigController;
import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

public class FlyBeanImportSelector implements ImportSelector {

    private static Log log = LogFactory.getLog(FlyBeanImportSelector.class);
    /**
     * 自动装配注册bean到IOC容器
     *
     * @param importingClassMetadata
     * @return
     */
    @Override
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {
//        log.info("FlyBeanImportSelector");
        return new String[]{
                FlyApiController.class.getName(), FlyEnvironmentController.class.getName(), RoleRedisConfigController.class.getName()
        };
    }
}

